package duck;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;

public class Flock implements Quackable, Collection<Quackable> {

	ArrayList<Quackable> quackers = new ArrayList<Quackable>();
	
	@Override
	public void quack() {
		for(Quackable q : quackers) {
			q.quack();
		}
	}
	
	@Override
	public boolean add(Quackable e) {
		return quackers.add((Quackable) e);
	}

	
	@Override
	public void clear() {
		quackers.clear();
	}

	

	@Override
	public boolean isEmpty() {
		return quackers.isEmpty();
	}

	@Override
	public Iterator<Quackable> iterator() {
		return quackers.iterator();
	}

	
	//bla bla bla..
	@Override
	public boolean remove(Object o) {
		// TODO Auto-generated method stub
		return false;
	}	@Override
	public int size() {
		// TODO Auto-generated method stub
		return 0;
	}@Override
	public Object[] toArray() {
		// TODO Auto-generated method stub
		return null;
	}@Override
	public boolean addAll(Collection<? extends Quackable> c) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean contains(Object o) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean containsAll(Collection<?> c) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean removeAll(Collection<?> c) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean retainAll(Collection<?> c) {
		// TODO Auto-generated method stub
		return false;
	}@Override
	public <T> T[] toArray(T[] a) {
		// TODO Auto-generated method stub
		return null;
	}
}
